package com.mathset.common;

import java.util.Date;
import java.util.Random;


public class MathSetUtil {

	private final static String forToken = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
	
	private final static Random random = new Random();
	
	public static String generateToken() {
		StringBuffer token = new StringBuffer("");
		token.append(new Date().getTime());
		for(int i = 0; i < 30; i++) {
			token.append(forToken.charAt(random.nextInt(32)));
		}
		return token.toString();
	}
}
